package cn.itcast.erp.service;

import cn.itcast.erp.entity.Emp;
import cn.itcast.erp.entity.utils.AjaxResult;
import cn.itcast.erp.params.EmpParam;

import java.io.InputStream;
import java.util.List;

public interface EmpService {

    int updatePwd(String id, String newPwd);

    Emp findByUsernameAndPwd(Emp emp);

    int insertEmp(Emp emp);

    int deleteEmp(Long uuid);

    int updateEmp(Emp emp);

    //List<Emp> searchEmp(Emp param);
    AjaxResult searchEmp(Emp param);

    List<Emp> findAllEmp();

    List<Emp> searchEmpAll(Emp param);

    AjaxResult  updatePwd(Long uuid,String oldPwd,String newPwd);

    Emp searchEmpById(Long uuid);
    //导入Excel
    InputStream getAllEmpEx();
}
